package com.example.demo.common.entity.response;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.example.demo.common.entity.pojo.BaseEntityPoJo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础响应实体.
 *
 * @author Mei Ruoxiao
 * @since 2020/8/25
 */
@Data
public class BaseResponse<T extends BaseEntityPoJo> implements Serializable {

    private Long id;
    @JsonFormat(timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @ExcelIgnore
    private Date createTime;

    @JsonFormat(timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @ExcelIgnore
    private Date updateTime;
}
